//
//  ZYTimerProxy.m
//  ZYWebImage
//
//  Created by wangzhipan on 2025/4/24.
//

#import "ZYTimerProxy.h"

@interface ZYTimerProxy()
@property (nonatomic, weak) id target;
@end

@implementation ZYTimerProxy
- (instancetype)initWithTarget:(id)target
{
    if (self = [super init]) {
        self.target = target;
    }
    return self;
}

- (id)forwardingTargetForSelector:(SEL)aSelector
{
    if ([self.target respondsToSelector:aSelector]) {
        return self.target;
    }
    return [super forwardingTargetForSelector:aSelector];
}
@end
